package org.cmg.study.mybatis.entity;

import java.util.List;

/**
 * @author CMG
 * @version 1.0
 * @cLassName Order1
 * @description
 * @date 2021/9/8 10:54
 **/
public class Order1 {
    private int oid;
    private int ordernum;
    private List<Product> products;

    public Order1() {
    }

    public Order1(int ordernum, List<Product> products) {
        this.ordernum = ordernum;
        this.products = products;
    }

    public Order1(int oid, int ordernum, List<Product> products) {
        this.oid = oid;
        this.ordernum = ordernum;
        this.products = products;
    }

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public int getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(int ordernum) {
        this.ordernum = ordernum;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    @Override
    public String toString() {
        return "Order1{" +
                "oid=" + oid +
                ", ordernum=" + ordernum +
                ", products=" + products +
                '}';
    }
}
